import {createApp} from 'vue'

import App from './App.vue'
//import App from './views/layout/Index.vue'
import './assets/main.css'
import ep from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import * as icons from '@element-plus/icons-vue'


import pinia from "./stores"
import router from './router'

const app = createApp(App)

app.use(pinia)

app.use(router)

//ElementPlus 组件内部默认使用英语，使用中文语言app.use(ep)
app.use(ep, {locale: zhCn})
for (const [k, c] of Object.entries(icons)) {
    app.component(k, c)
}

app.mount('#app')
